package view.macrogui
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;
	
	/**
	 */
	public class RecruitmentPane extends Sprite
	{
		public var opened:Boolean;
		static private const HEIGHT:Number = 200;
 		
		private var title:TextField;
		
		public function RecruitmentPane()
		{
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		public function open():void
		{
			opened = true;
			visible = true;
			x = -300;
		}
		
		public function close():void
		{
			opened = false;
			visible = false;
			x = 200;
		}
		
		private function init(e:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			title = new TextField();
			title.text = "Recruitment";
			addChild(title);
			
			graphics.drawRect(0, 0, stage.stageWidth, HEIGHT);
			y = stage.stageHeight - HEIGHT;
			
			close();
		}
	
	}

}